﻿using Glorysoft.EAP.Core.Entities.DB.Contract;
using System;
using System.Collections.Generic;
using System.Text;

namespace Glorysoft.EAP.Core.Entities.DB.Service
{
   public class RPT_RUN_HISTORYService //: FreeSqlContext//, IRPT_RUN_HISTORYService
    {
        public static int Delete(int id)
        {
            //return base.FreeSqlConnect().Delete<RPT_MSG_HISTORY>(id).ExecuteAffrows();
            return FreeSqlContext.Delete<RPT_RUN_HISTORY>(id);
        }

        public static int Insert(RPT_RUN_HISTORY entity)
        {
            return FreeSqlContext.Insert<RPT_RUN_HISTORY>(entity);
        }

        public static IList<RPT_RUN_HISTORY> SelectAll()
        {
            return FreeSqlContext.SelectAll<RPT_RUN_HISTORY>();
        }

        public static  RPT_RUN_HISTORY SelectById(int id)
        {
            return FreeSqlContext.SelectById<RPT_RUN_HISTORY>(id);
        }

        public static int Update(RPT_RUN_HISTORY entity)
        {
            return FreeSqlContext.Update(entity);
        }
    }
}
